<template>
  <div>
       <mc-select @blur="blurMe" @change="changeMe" v-model="form.userName" :mc-config="{type:'select',options:[{k:'1',v:'A'},{k:'2',v:'B'}]}"></mc-select>
       <el-button @click="print">打印</el-button>
       <el-button @click="change">改变</el-button>
  </div>
</template>

<script>
import McSelect from "./components/McSelect";
export default {
    data(){
      return {
        form:{
          userName:1
        }
      }
    },
    components:{
      McSelect,
    },
    methods:{
      changeMe(v){
        console.log(v)
      },
      blurMe(){
        console.log(2)
      },
        print(){
            console.log(this.form)
        },
        change(){
            //this.form.userName = false;
            this.form.userName=2;
        }
    }
}
</script>

<style>

</style>
